idf_component_get_property(LVGL_DIR lvgl COMPONENT_DIR)

file(GLOB LVGL_DEMOS 
    ${LVGL_DIR}/demos/widgets
    ${LVGL_DIR}/demos/widgets/assets
)

idf_component_register(
    SRC_DIRS ${DIRS} ${LVGL_DEMOS} "."
    INCLUDE_DIRS "." ${LVGL_DEMOS} ${DIRS}
)
